﻿using System.Collections.Generic;

namespace Sinacor.OMM.Deployment.Setup.Steps
{
    public class OracleConnection
    {
        #region [ Public Methods ]

        public List<string> GetTNSNames()
        {
            return Util.Oracle.LoadTNSNames(Util.Oracle.GetOracleHomes()[0]);
        }

        public bool TestConnection(string user, string password, string tns)
        {
            return Util.Oracle.TestConnection(user, password, tns);
        }

        public List<Parameter.Entitys.Company> GetCompanys(string user, string password, string tns)
        {            
            return Util.Oracle.GetCompanys(user, password, tns);
        }

        #endregion
    }
}